package nc.vo.arap.manualcost;

import nc.vo.pub.SuperVO;
import nc.vo.pub.lang.UFDate;
import nc.vo.pubapp.pattern.model.entity.bill.AbstractBill;
import nc.vo.pubapp.pattern.model.meta.entity.bill.BillMetaFactory;
import nc.vo.pubapp.pattern.model.meta.entity.bill.IBillMeta;
import nccloud.itf.arap.manual.aggmanualcostvo.IMainChildren;

@nc.vo.annotation.AggVoInfo(parentVO = "nc.vo.arap.manualcost.ManualCostVO")

public class AggManualCostVO extends AbstractBill implements IMainChildren {

	@Override
	public IBillMeta getMetaData() {
		IBillMeta billMeta = BillMetaFactory.getInstance().getBillMeta(AggManualCostVOMeta.class);
		return billMeta;
	}

	@Override
	public ManualCostVO getParentVO() {
		return (ManualCostVO) this.getParent();
	}

	@Override
	public SuperVO[] getMainChildren() {
		return (SuperVO[]) getChildren(ManualCostBVO.class);
	}

	@Override
	public UFDate getBillDate() { 
		return getParentVO().getDbilldate();
	}

	@Override
	public String getPeriod() { 
		return getParentVO().getPeriod();
	}

	@Override
	public Object getHeadAttrValue(String name) {
	 
		return getParentVO().getAttributeValue(name);
	}

}